package com.lz.gamll.feign.search.fallBack;

import com.lz.gamll.feign.search.GoodsFeignClient;
import com.lz.gmall.common.result.Result;
import com.lz.gmall.search.dto.SearchParamDTO;
import com.lz.gmall.search.entity.Goods;
import com.lz.gmall.search.vo.SearchResponseVo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class GoodsFeignClientFallBack implements GoodsFeignClient {
    @Override
    public Result saveGoods(Goods goods) {
        log.error("saveGoods兜底方案执行了。。。。。");
        return Result.ok();
    }

    @Override
    public Result deleteGoodsById(Long skuId) {
        log.error("deleteGoodsById兜底方案执行了。。。。。");
        return Result.ok();
    }

    @Override
    public Result<SearchResponseVo> search(SearchParamDTO searchParamDTO) {
        log.error("search兜底方案执行了。。。。。");
        return Result.ok();
    }

    @Override
    public Result updateHotScore(Long hotScore, Long goodsId) {
        log.error("updateHotScore兜底方案执行了。。。。。");
        return Result.ok();
    }
}
